﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Controls="clr-namespace:Snipps.Controls">

    <Style TargetType="{x:Type Controls:CloseButton}">
        <Setter Property="Width" Value="13" />
        <Setter Property="Height" Value="13" />
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:CloseButton}">
                    <Grid>
                        <Rectangle Fill="{DynamicResource BackgroundBrush}" />
                        <Path x:Name="Cross"
                              Data="M0,0 L1,1 M0,1 L1,0"
                              Stretch="Fill"
                              Stroke="{DynamicResource ForegroundBrush}"
                              StrokeThickness="2" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>